package com.liu.yubi.config;

import com.liu.yubi.constant.AIConstant;
import com.zhipu.oapi.ClientV4;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author lqh
 * @since 2025-07-09 22:20
 * 智谱AI谱 客户端对象
 */
@Configuration
public class ChatGLM4Config {

    @Bean
    public ClientV4 clientV4() {
        return new ClientV4.Builder (AIConstant.API_KEY).
                build ();
    }
}
